import upload from '@/utils/upload'

// 文件上传
export function uploadFile(data) {
  return upload({
    url: '/common/upload',
    name: data.name,
    filePath: data.filePath
  })
}

// 文件上传（多个）
export function uploadsFile(data) {
  return upload({
    url: '/common/uploads',
	data
  })
}
